<% if (request.getUserPrincipal() != null) { %>
    [<a href="view/logout.jsp">Logout</a>]
  <% } %>